package examples {
	
	import restless.core.interfaces.IScore;
	
	/**
	 * ...
	 * @author Jordan Laine
	 */
	
	public class ExampleGameData implements IScore {
		
		//LevelDataShit
		public var backGroundMap:Array;
		public var spriteMap:Array;
		public var PLAYER_START_POO:int = 3;
		public var E_POO:Array = [2,4];
		public var E_SPEED:Array = [1,1];
		
		//Score Shit
		public var highScore:int;
		public var currentScore:int=0;
		public var multiHigh:int=0;
		public var multiCurr:int=0;
		
		public var playerDeaths:int=0;
		public var pooEatten:int=0;
		public var brownPooEatten:int=0;
		public var yellowPooEatten:int=0;
		public var greenPooEatten:int=0;
		public var foodEatten:int=0;
		public var spacesMoved:int=0;
		public var arrowsHit:int=0;
		public var timesPaused:int=0;
		public var powerupsEatten:int=0;
		public var enemiesEatten:int=0;
		
		private var multiMax:int = 25;
		
		public static var SCORE_START:int = 100;
		public static var PLAYER_DEATHS_ID:int = 101;
		public static var HIGH_SCORE_ID:int = 102;
		public static var POO_EATTEN_ID:int = 103;
		public static var BROWN_POO_EATTEN_ID:int= 104;
		public static var YELLOW_POO_EATTEN_ID:int = 105;
		public static var GREEN_POO_EATTEN_ID:int = 106;
		public static var FOOD_EATTEN_ID:int = 107;
		public static var SPACES_MOVED_ID:int = 108;
		public static var ARROWS_HIT_ID:int = 109;
		public static var TIMES_PAUSED_ID:int = 110;
		public static var POWERUPS_EATTEN_ID:int = 111;
		public static var CURRENT_SCORE_ID:int = 112;
		public static var ENEMIES_EATTEN:int = 113;
		public static var MULTI_PLUS:int = 114;
		public static var MULTI_MINUS:int = 115;
		public static var MULTI_MAX:int = 116;
		public static var SCORE_END:int = 130;
		
		private var scoreUpdateArray:Vector.<int>;
		
		public function ExampleGameData() {
			
		}
		
		public function modifyPlayStats(ID:int):void {
			
		}
		
		public function modifyScore(ID:int, num:int = 0):void {
			switch (ID) {
				case PLAYER_DEATHS_ID:
					playerDeaths++;
				break;
				
				case HIGH_SCORE_ID:
					
				break;
				
				case POO_EATTEN_ID:
					
				break;
				
				case BROWN_POO_EATTEN_ID:
					brownPooEatten++;
					pooEatten++;
				break;
				
				case YELLOW_POO_EATTEN_ID:
					yellowPooEatten++;
					pooEatten++;
				break;
				
				case GREEN_POO_EATTEN_ID:
					greenPooEatten++;
					pooEatten++;
				break;
				
				case FOOD_EATTEN_ID:
					foodEatten++;
				break;
				
				case SPACES_MOVED_ID:
					spacesMoved++;
				break;
				
				case ARROWS_HIT_ID:
					arrowsHit++;
				break;
				
				case TIMES_PAUSED_ID:
					timesPaused++;
				break;
				
				case POWERUPS_EATTEN_ID:
					powerupsEatten++;
				break;
				
				case CURRENT_SCORE_ID:
					
				break;
				
				case ENEMIES_EATTEN:
					ENEMIES_EATTEN++;
				break;
				
				case MULTI_PLUS:
					multiCurr++;
					if (multiCurr > multiHigh) {
						multiHigh = multiCurr;
					}
				break;
				
				case MULTI_MINUS:
					
					if (multiCurr > 1) {
						multiCurr--;
					} else {
						
					}
					
				break;
				
				case MULTI_MAX:
					multiCurr = multiMax;
				break;
				
			}
		}		
		
		public function resetScore():void {
			
		}
		
	}

}